package com.tanhua.dubbo.server.vo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
//@NoArgsConstructor
//@AllArgsConstructor
public class Answer implements Serializable{
    private static final long serialVersionUID = -3136732836884933413L;

    private String questionId;
    private String optionId;

    public Answer() {
    }

    @JsonCreator
    public Answer(@JsonProperty("questionId") String questionId, @JsonProperty("optionId") String optionId) {
        this.questionId = questionId;
        this.optionId = optionId;
    }
}
